/**
 * @author 陈泰来
 * @version V1.0
 * @Project echo-java-base
 * @Title 抽象鸭子工厂
 * @Description *
 * @Package designmodel.composite.factory
 * @date 2021/3/2 5:26 下午
 * @Copyright:学如逆水行舟，不进则退 .
 */
package designmodel.composite.factory;

import designmodel.composite.MallardDuck;
import designmodel.composite.Quackable;
import designmodel.composite.RedheadDuck;
import designmodel.composite.DuckCall;
import designmodel.composite.RubberDuck;

public class DuckFactory extends AbstractDuckFactory {


    @Override
    public Quackable createMallardDuck() {
        return new MallardDuck();
    }

    @Override
    public Quackable createRedheadDuck() {
        return new RedheadDuck();
    }

    @Override
    public Quackable createDuckdCall() {
        return new DuckCall();
    }


    @Override
    public Quackable createRubberDuck() {
        return new RubberDuck();
    }
}
